﻿using ZeroSum.Domain.Entities;
using ZeroSum.Domain.UnitOfWork;

namespace ZeroSum.Extend.EFCore.MySql.EntityFrameworks;

public class DefaultContextCoreRepository<TEntity, TKey> : EfCoreRepository<ZeroSumDbContext, TEntity, TKey>
    where TEntity : BaseEntity<TKey>
{
    public DefaultContextCoreRepository(ZeroSumDbContext dbContext, IUnitOfWork unitOfWork) : base(dbContext,
        unitOfWork)
    {
    }
}

public class DefaultContextCoreRepository<TEntity> : EfCoreRepository<ZeroSumDbContext, TEntity>
    where TEntity : class, IEntity
{
    public DefaultContextCoreRepository(ZeroSumDbContext dbContext, IUnitOfWork unitOfWork) : base(dbContext,
        unitOfWork)
    {
    }
}